package com.whstudio.common.memory.item;

public abstract class AbstractItem implements Item {
	protected String nameString;
	
	/**
	 * 不允许没有名字的Item出现
	 * @param nameString
	 */
	public AbstractItem(String nameString){
		this.nameString=nameString;
	}
	
	public String getNameString() {
		return nameString;
	}
	public void setNameString(String nameString) {
		this.nameString = nameString;
	}
	
	@Override
	public String getName() {
		return getNameString();
	}
	
	@Override
	public void setName(String nameString) {
		setNameString(nameString);
	}

	@Override
	public void move() {

	}

}
